package com.bootdo.hjh.ex;

/**
 * Created by qingyong on 2018/4/6.
 */
public class ThrowUtils {

    public static void throwCondition(boolean condition,int code,String message){
        if(condition){
            throw new BizException(message,code);
        }
    }
    
    public static void throwException(int code,String message){
         throw new BizException(message,code);
    }
}
